package com.tyg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author zhangjingnan
 * @since 2022-10-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MenuInfo implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 菜单id

     */
    @TableId(value = "menuId", type = IdType.AUTO)
    private Integer menuId;

    /**
     * 菜单名
     */
    @TableField("menuName")
    private String menuName;

    /**
     * 图标
     */
    private String icon;

    /**
     * 父级菜单id
     */
    @TableField("parentId")
    private Integer parentId;

    /**
     * 地址
     */
    private String url;



    @TableField(select=false)
    private List<MenuInfo> subMenuList;

    public Integer getMenuId() {
        return menuId;
    }


}
